package com.carsystems.mapper;

import com.carsystems.pojo.UserCarDetails;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
import java.util.List;

@Mapper
@Repository
public interface UserCarDetailsMapper {

    //多对一查询
//    List<UserCarDetails> querList();

    //查询全部
    List<UserCarDetails> querUserList();

    //按照user_id查询
    UserCarDetails selectByPrimaryKey(Integer user_id);

    //添加
    int addUser(UserCarDetails user);

    //修改
    int updateUser(UserCarDetails user);

    //删除
    int daleteUser(int user_id);
}
